package com.codelinecounter.rule;

public class WhiteCodeLineParser extends CodeLineParser {
	
	public WhiteCodeLineParser(){
		this.parserType = CodeLineParserCreator.CodeLineParserClass.WHITE_CODE_LINE;
	}
	
	private static String WHITE_LINE_PATTEN = "^[//s&&[^//n]]*$";
	

	@Override
	public boolean parseCodeLine() {
		if(this.codeLine.matches(WhiteCodeLineParser.WHITE_LINE_PATTEN)){
			++this.lineCount;
			return true;
		}
		else
			return false;
	}

}
